package com.roger.myHome.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


@Data
@TableName("tb_lottery")
public class TbLottery implements Serializable {
    @TableField(value = "id")
    private Long id;

    @TableField(value = "host")
    private String host;

    @TableField(value = "customer")
    private String customer;

    @TableField(value = "final_result")
    private String finalResult;

    /**
     * 我的预测
     */
    @TableField(value = "predict_result")
    private String predictResult;

    /**
     *
     */
    @TableField(value = "type")
    private String type;

    @TableField(value = "lottery_ticket")
    private String lotteryTicket;

    @TableField(value = "buy_money")
    private Integer buyMoney;

    @TableField("buy_date")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date buyDate;

    @TableField("create_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
